# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class JdscrapyItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


# 为什么要构建Item
# 1、明确爬取的目标
# 2、可以将爬取到的数据统一发送到pipeline里进行处理
# 3、scrapy提供对应的命令 可以将item格式化成不同的文本格式
class JDCommentItem(scrapy.Item):
    nickname = scrapy.Field()
    score = scrapy.Field()
    productColor = scrapy.Field()
    content = scrapy.Field()
